package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@

tmp_dir:=$(shell mktemp -d)

AMBARI_PATH?=@AMBARI_PATH@
AMBARI_STACK?=@AMBARI_STACK@

install:
	mkdir -p $(AMBARI_PATH)/$(AMBARI_STACK)/$(version)
	cp -r . $(AMBARI_PATH)/$(AMBARI_STACK)/$(version)
	rm -f $(AMBARI_PATH)/$(AMBARI_STACK)/$(version)/Makefile

uninstall:
	rm -rf $(AMBARI_PATH)/$(AMBARI_STACK)/$(version)
